package com.soos.plugin.ds.spring.boot.autoconfigure;


import com.zaxxer.hikari.HikariConfig;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

@ConfigurationProperties(prefix = "com.soos.plugin.ds")
public class DynamicDataSourceProperties {

    /**
     * 主要数据源的配置
     */
    private HikariConfig main;


    /**
     * 其他多个数据源
     */
    private List<HikariConfig> others;

    public DynamicDataSourceProperties() {
    }

    public HikariConfig getMain() {
        return main;
    }

    public void setMain(HikariConfig main) {
        this.main = main;
    }

    public List<HikariConfig> getOthers() {
        return others;
    }

    public void setOthers(List<HikariConfig> others) {
        this.others = others;
    }
}
